package com.chenyuxin.ilp.model.entity.community.mysql;

import com.baomidou.mybatisplus.annotation.*;
import lombok.Data;

import java.time.LocalDateTime;

@Data
@TableName("community_post_comment")
public class CommunityPostComment {

    @TableId(type = IdType.AUTO)
    private Long id;

    @TableField("post_id")
    private Long postId;

    @TableField("parent_id")
    private Integer parentId;

    @TableField("user_id")
    private String userId;

    @TableField("content")
    private String content;

    @TableField("like_count")
    private Integer likeCount;

    @TableField("create_time")
    private LocalDateTime createTime;

    @TableField("reply_user_id")
    private String replyUserId;

    // 如果需要自动填充 createTime
    // @TableField(fill = FieldFill.INSERT)
    // private LocalDateTime createTime;
}
